package com.group.nonefornow;

import java.util.ArrayList;
import java.util.List;

public class BallContainer {

	private List<Ball> container;
	
	private static BallContainer instance = new BallContainer();
	
	private BallContainer() {
		this.container = new ArrayList<Ball>();
	}
	
	public static BallContainer getInstance() {
		return instance;
	}
	
	public void addBall(Ball b) {
		this.container.add(b);
	}
	
	public void removeBall(Ball b) {
		this.container.remove(b);
	}
	
	public int size() {
		return this.container.size();
	}
	
	public Ball get(int index) {
		return this.container.get(index);
	}
	
	public List<Ball> getList() {
		return this.container;
	}
}
